Bipolar Disorder Health Center
function addTitleBarCSS() { /* grabs height of third col area and negative margins nav to compensate. Drops in a stylesheet into the head */ var tbHeight = document.getElementById('mainContent_ThirdCol_ctr').offsetHeight; var moveBar = '#navColumn_area {margin-top: -' + tbHeight + 'px;}'; var styleElement = document.createElement("style"); styleElement.type = "text/css"; styleElement.id = "titleBarCSS"; if (styleElement.styleSheet) {styleElement.styleSheet.cssText = moveBar;} else {styleElement.appendChild(document.createTextNode(moveBar));} document.getElementsByTagName("head")[0].appendChild(styleElement); } function resizeTitleBar() { var tbHeight = document.getElementById('mainContent_ThirdCol_ctr').offsetHeight; document.getElementById('navColumn_area').style.marginTop = '-' + tbHeight + 'px'; } /* calls function here and then one more time in sponsored disclaimer just in case */ try{addTitleBarCSS();}catch(e){} /* just in case the previous stuff doesnt work or youre in IE6, it adds that style to the div once page is loaded */ addLoadEvent(resizeTitleBar);